<div ng-include src="'tpl/public/header.html?1'"></div>
<div class="contents">
  <ol class="breadcrumb">
    <li> <a href="#/index/panel">首页</a> </li>
    <li class="active">添加人员</li>
  </ol>

  <form class="form-horizontal" role="form" name="form" novalidate ng-submit="save()">

    <div class="form-group" ng-class="{'has-error':form.addOrderManagerUser.$invalid}">
      <label class="col-sm-2 control-label">
        请选择
      </label>
      <div class="col-sm-5">
        <select class="form-control" name="addOrderManagerUser" ng-model="userNotManager.systemUserId" ng-options="u.userId as u.username for u in notOrderManagerUserList" required="required">
          <option value=""></option>
        </select>
      </div>
    </div>

    <div ng-repeat="u in notOrderManagerUserList | filter:{userId:userNotManager.systemUserId||'99999'}">
      <div class="form-group">
        <label class="col-sm-2 control-label">
          账号
        </label>
        <label class="col-sm-2 control-label" style="text-align: left;">
          {{u.userNickname}}
        </label>
      </div>

      <div class="form-group">
        <label class="col-sm-2 control-label">
          手机
        </label>
        <label class="col-sm-2 control-label" style="text-align: left;">
          {{u.telePhone}}
        </label>
      </div>
    </div>

    <div class="form-group" >
      <label class="col-sm-2 control-label">&nbsp;</label>
      <div class="col-sm-5">
        <input type="submit" class="btn btn-primary" value="保存" has-auth where="btn"/>
      </div>
    </div>

  </form>
</div>